package com.koala.api;

import com.google.code.kaptcha.Producer;
import com.koala.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 测试
 *
 * @author simpl
 * @date 2022/10/28 18:53
 */
@RestController
@Slf4j
public class IndexApi {

    @Resource
    private Producer captchaProducer;

    @GetMapping("/index")
    public String index() {
        return "hello world";
    }

    @GetMapping("/captchaImage")
    public Result<String> captchaImage() {
        return Result.success();
    }
}
